//
//  ContentView.swift
//  codelabs
//
//  Created by 雷雷 on 23/05/2025.
//

import SwiftUI
import SwiftData

struct ContentView: View {
    @Environment(ModelData.self) private var modelData
    
    var body: some View {
        
        NavigationStack{
            List{
                NavigationLink("Landmark"){
                    LandmarkContentView()
                        .environment(modelData)
                }
                
                NavigationLink("Scrum"){
                    ScrumView()
                        .modelContainer(for: DailyScrum.self)
                }
            }
            .font(.headline)
            .listRowSpacing(10)
            .navigationTitle("SwiftUI")
        }
    }
}

#Preview(traits:.dailyScrumSampleData) {
    ContentView()
        .environment(ModelData())
}
